<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<span>本例我们使用v-on指令来绑定事件<br/></span>
			<span>{{message}}</span>
			<ul>
				<li v-on:click="clickMe">点击我看看会发生什么</li>
			</ul>
		</div>
	</body>
	<script type="text/javascript">
		var app = new Vue({
			el: '#app',
			data: {
				message: ""
			},
			
			//使用methods属性来绑定事件
			methods: {
				clickMe: function(){
					this.message = "你点什么点！";  //推荐这样修改DOM变量，而非直接修改DOM
				}
			}
		});
	</script>
</html>
